import { createRouter, createWebHistory } from 'vue-router'
import ThemeList from '../components/ThemeList.vue'
import MainFace from '../components/MainFace.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: ThemeList,
    },
    {
      path: '/subject/:id',
      name: 'subject',
      component: MainFace,
    }
  ],
})

export default router
